package com.zbs.framework.dao.passport.normal.service;


import com.zbs.framework.dao.passport.entity.MNLoginRecord;
import com.zbs.framework.dao.passport.entity.MNNormal;

public interface NormalAccountService {

    /**
     * 账号密码登录
     * @param username
     * @param pwd
     * @param entryType
     * @return
     */
    MNLoginRecord login(String username, String pwd, String entryType);

    /**
     * 新增账号
     * @param username
     * @param pwd
     * @return
     */
    MNNormal create(String username, String pwd);

    /**
     * 强制修改密码
     * @param accUuid
     * @param pwd
     */
    void forceChangePwd(String accUuid, String pwd);

    /**
     * 强制修改账号\密码
     * @param accUuid
     * @param username
     */
    void forceChangeUsername(String accUuid, String username);

    /**
     * 修改密码
     * @param accUuid
     * @param oldPwd
     * @param newPwd
     */
    void changePwd(String accUuid, String oldPwd, String newPwd);
}
